<template>
  <div class="hello">
    
<el-button @click="firstAjaxTest">跨域代理测试</el-button>
<el-button @click="firstAjaxPageTest">分页测试</el-button>
<el-button @click="firstAjaxGetById">分页测试</el-button>


  </div>
</template>

<script>
import { firstAjaxTest,firstAjaxPageTest,firstAjaxGetById } from "../service/UserSerice.js";

export default {
  name: "HelloWorld",
  data() {
    return {
      msg: "Welcome to Your Vue.js App"
    };
  },
  methods: {
    firstAjaxTest() {
      var that=this;
      firstAjaxTest().then(res => {
         this.$message(res.ResultMsg);
      });
    },
    firstAjaxPageTest() {
      firstAjaxPageTest().then(res => {
         this.$message(res.ResultMsg);
      });
    },
    firstAjaxGetById() {
      firstAjaxGetById().then(res => {
         this.$message(res.ResultMsg);
      });
    }
  }
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style  lang="scss" scoped>
</style>
